home *** CD-ROM | disk | FTP | other *** search
- Path: anvil.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Mouse Event Handler
- Date: 11 Apr 1996 11:00:46 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4kjhceINNffv@anvil.ugrad.cs.ubc.ca>
- References: <316B59B1.359D@natlab.research.philips.com>
- NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
-
- In article <316B59B1.359D@natlab.research.philips.com>,
- niessene <niessene@natlab.research.philips.com> wrote:
- >Can somebody tell me why the following programm doesn't work?
- >It only goes one time in the ISR. I'm using Borland C++ 4.5.
- >
- >#include <stdio.h>
- >#include <dos.h>
- >#include <conio.h>
- >
- >void interrupt far nieuwint33() {
- > sound(1500);
- > delay(10);
- > nosound(); }
- >
- >void main() {
- > union REGS reg;
- > struct SREGS sreg;
- > int oldmask;
- > void * oldhandler;
- >
- >// reset mouse
- > reg.x.ax=0;
- > int86(0x33, ®, ®);
-
- ^^^ because it is recursively triggering itself? Duh!!!
-
- Keep this OS/hardware-specific shit off this newsgroup. "<conio.h>", "interrupt
- far", and "union REGS" and "int86" are not part of the C language. Only a
- fraction of the people who read this newgroup are interested in these things,
- and know the proper places to read or post about them.
- --
-
-